﻿<!DOCTYPE html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta id="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="white" name="apple-mobile-web-app-status-bar-style">
    <link rel="dns-prefetch" href="//127.0.0.1/">
    <link rel="dns-prefetch" href="//static.sitemate.cn/">
    <link rel="dns-prefetch" href="//file.sitemate.cn/">
    <link rel="dns-prefetch" href="//cdn.sitemate.com/">
    <title>网站管理 - tttttt</title>
    <link href="../../static/css/tuweia.css" rel="stylesheet" type="text/css">
    <link href="../../static/css/admin.css" rel="stylesheet" type="text/css">
    <link href="../../static/css/icon.css" rel="stylesheet" type="text/css">
    <style>
        body, html { height: 100%; overflow: hidden; }
    </style>
    <script type="text/javascript">
        document.domain = '127.0.0.1';
        var phprpcURL = '/aspx/tuweia/AdminRpc.aspx?c=adminRpc',
                ajaxURL = '/aspx/tuweia/AdminRpc.aspx?c=adminAjax',
                welcomePage = '../../c/admin/a/welcome',
                welcomeTitle = '欢迎页',
                staticPath = '../../static',
                lazyLoadSrc = staticPath + '/images/lazyLoad.png',
                pageURL = '../../c/admin/a/page/id/', //页面设置地址
                viewURL = '../../c/default/pageId/', //页面查看地址
                previewURL = 'http://tuweia.cn/?c=home&a=responsive&url=', //预览地址
                saveTemplateURL = '../../c/admin/a/saveTemplate', //保存模板地址
                finderURL = 'http://127.0.0.1/c/admin/a/finder', //资源管理器地址
                fileLocalhost = 'http://static.tuweia.cn', //文件存放地址
                setTextURL = '../../c/admin/a/setText', //设置文字页面地址
                websiteSecondURL = '127.0.0.1',
                signOutURL = 'http://127.0.0.1/c/default/a/logout',
                appSettingURL = 'http://127.0.0.1/c/admin/a/appsetting',
                manageURL = '../../c/newManage',
                siteName = "tttttt",
                pageSetHistory = 50, //页面设置历史记录
                historyMax = 10, //可保存的历史记录
                nameMax = 32, //页面名称的最大长度
                copyMax = 100, //一次最多可以同步几个页面
                $HASH = {
                    //网站信息	
                    site: {
                        host: '127.0.0.1', //网站域名，未绑定独立域名的使用二级域名
                        id: '5580b5ae77eb06d23a8b4567', //网站id
                        name: siteName, //网站名称
                        templateId: '54c220992034da71288b4569', //模板id
                        styleId: '53b54cf8a031b8f80a00003a'//样式id，没有则为空
                    },
                    //首页信息
                    homePage: {
                        id: '5580b5af77eb06d23a8b45ab', //网页ID
                        name: '网站首页'
                    },
                    //用户分组
                    userGroup: [],
                    frames: {},
                    htmlWidgets: ['imagetext', 'line', 'video'],
                    pageCategories: [
                            {
                                id: '0',
                                name: '全部网页'
                            },
                            {
                                id: '1',
                                name: '导航项'
                            },
                            {
                                id: '2',
                                name: '非导航项'
                            }
                    ],
                    colors: [
                            {
                                id: 'white',
                                name: '白色'
                            },
                            {
                                id: 'black',
                                name: '黑色'
                            },
                            {
                                id: 'red',
                                name: '红色'
                            },
                            {
                                id: 'orange',
                                name: '橙色'
                            },
                            {
                                id: 'yellow',
                                name: '黄色'
                            },
                            {
                                id: 'green',
                                name: '绿色'
                            },
                            {
                                id: 'blue',
                                name: '蓝色'
                            },
                            {
                                id: 'purple',
                                name: '紫色'
                            },
                            {
                                id: 'tan',
                                name: '褐色'
                            },
                            {
                                id: 'gray',
                                name: '灰色'
                            },
                            {
                                id: 'syan',
                                name: '青色'
                            },
                            {
                                id: 'other',
                                name: '其他'
                            }
                    ]
                },
        $lan = { "tuweiaName": "\u7a81\u552f\u963f", "homePage": "\u9996\u9875", "signIn": "\u767b\u5f55", "signOut": "\u9000\u51fa", "signUp": "\u6ce8\u518c", "pages": "\u7f51\u9875", "templates": "\u6a21\u677f", "settings": "\u8bbe\u7f6e", "apps": "\u5e94\u7528", "widgets": "\u7ec4\u4ef6", "recently": "\u6700\u8fd1\u6253\u5f00", "custom": "\u4e2a\u6027\u5316", "manage": "\u7ba1\u7406", "help": "\u5e2e\u52a9", "save": "\u4fdd\u5b58", "preview": "\u9884\u89c8", "basicInfo": "\u57fa\u672c\u4fe1\u606f", "sure_to_quit": "\u786e\u5b9a\u8981\u79bb\u5f00\u9875\u9762\u5417?", "close": "\u5173\u95ed", "fresh": "\u5237\u65b0", "back": "\u8fd4\u56de", "admin": { "siteAdmin": "\u7f51\u7ad9\u7ba1\u7406", "newTab": "\u65b0\u5efa\u6807\u7b7e\u9875", "welcomeTitle": "\u6b22\u8fce\u9875", "setHomePage": "\u8bbe\u4e3a\u9996\u9875", "setNavPage": "\u8bbe\u4e3a\u5bfc\u822a\u9875", "cancelNavPage": "\u53d6\u6d88\u5bfc\u822a\u9875", "set": "\u8bbe\u7f6e", "viewURL": "\u67e5\u770b\u7f51\u5740", "copy": "\u590d\u5236", "delete": "\u5220\u9664", "rename": "\u91cd\u547d\u540d", "clearAppPage": "\u6e05\u9664\u5e94\u7528\u9875\u9762\u8bbe\u7f6e" }, "customPage": { "history": "\u5386\u53f2\u8bb0\u5f55", "styles": "\u6837\u5f0f", "layout": "\u5e03\u5c40", "myTemplates": "\u6211\u7684\u6a21\u677f", "saveSiteTepmlates": "\u4fdd\u5b58\u5f53\u524d\u7f51\u7ad9\u4e3a\u6211\u7684\u6a21\u677f", "savePageTepmlates": "\u4fdd\u5b58\u5f53\u524d\u7f51\u9875\u4e3a\u6211\u7684\u6a21\u677f", "basicPages": "\u57fa\u672c\u7f51\u9875", "appPages": "\u5e94\u7528\u7f51\u9875" }, "app": { "message": { "success": "\u7559\u8a00\u63d0\u4ea4\u6210\u529f", "user_not_empty": "\u8054\u7cfb\u4eba\u4e0d\u80fd\u4e3a\u7a7a", "tel_empty": "\u8054\u7cfb\u7535\u8bdd\u4e0d\u80fd\u4e3a\u7a7a", "email_empty": "\u8bf7\u586b\u5199\u6b63\u786e\u7684email\u5730\u5740", "content_empty": "\u7559\u8a00\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a" } } };
        function checkManagerLogin() {
            var login_manager = $.cookie('login_manager');
            if (!login_manager) {
                window.location.href = 'http://127.0.0.1/c/manage/a/login';
            }
        }
        ;
    </script>
</head>
<body id="body" style="background: #F1F0F5;">
    <div class="bodyContainer">
        <div class="nb_pusher" id="bodyMargin">
            <div class="nb_nav" id="nav">
                <div class="nb_level clearfix" id="navPanel">
                    <div id="navContainer">
                        <h2 class="hidden-desktop nb_level_head">
                            <a href="http://sitemate.cn/" target="_blank" class="logo" title="突唯阿" data-tips="3_t"></a>
                        </h2>
                        <ul>
                            <li class="nb_levelLi arrowLeft ">
                                <a href="javascript:;" class="nb_levelLink">升级</a>
                                <div class="nb_level" role="scroll">
                                    <ul>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/newManage/a/bindDomain">绑定域名</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/admin/a/storeDetail/id/53d0650acb65648a118b4567/typeId/1">去除广告</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/admin/a/store">应用商店</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/admin/a/orders">我的订单</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/admin/a/cart">我的订购</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/admin/a/tryuse">正在试用</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/admin/a/deposit">账户充值</a></li>
                                    </ul>
                                </div>
                            </li>
                            <li class="nb_levelLi arrowLeft"><a href="javascript:;" class="nb_levelLink">设置</a>
                                <div class="nb_level" role="scroll">
                                    <ul>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/newManage/a/manager">管理员设置</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/newManage/a/siteInfo">基本信息设置</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/newManage/a/email">手机及邮件设置</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/newManage/a/iphoneIcon">iPhone图标设置</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/newManage/a/social">社交网络设置</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/newManage/a/shortcut">网站图标设置</a></li>
                                        <hr class="ct_1 hidden-phone" />
                                        <li><a href="javascript:;" class="nb_levelLink" url="http://127.0.0.1/appliance/manage.php?mod=cart&ac=pay">支付方式设置</a></li>
                                        <hr class="ct_1 hidden-phone" />
                                        <li><a href="javascript:;" class="nb_levelLink" url="http://app.tuweia.cn/zhuzz/weixin/index/?websiteId=5580b5ae77eb06d23a8b4567&manageId=5580b5b077eb06d23a8b45b8">微信设置</a></li>
                                    </ul>
                                </div>
                            </li>
                            <li class="nb_levelLi arrowLeft hidden-phone" data-page="1"><a href="javascript:;" class="nb_levelLink" id="pageNavBtn">网页</a>
                                <div class="nb_level">
                                    <div class="nb_leveWeb" id="pageContainer">
                                        <div class="tabs p5">
                                            <ul id="pageTabs">
                                                <li role="custom"><a href="javascript:;">自建网页</a></li>
                                                <li role="app"><a href="javascript:;">应用网页</a></li>
                                            </ul>
                                        </div>
                                        <hr class="ct_1 hidden-phone" />
                                        <div role="scroll" data-page="1" id="pageScrollContainer">
                                            <div class="nb_leveWeb" id="customPage">
                                            </div>
                                            <div class="nb_leveApp" id="appPage">
                                            </div>
                                        </div>
                                        <div id="addPage"><a href="javascript:;" class="nb_levelLink"><span class="ct_6">+新建...</span></a></div>
                                    </div>
                                </div>
                            </li>
                            <li class="nb_levelLi arrowLeft  hidden-phone"><a href="javascript:;" class="nb_levelLink">模板</a>
                                <div class="nb_level" role="scroll">
                                    <ul>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/admin/a/siteTemplates">更换网站模板</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/admin/a/saveTemplate">保存当前网站为模板</a></li>
                                    </ul>
                                </div>
                            </li>
                            <li class="nb_levelLi arrowLeft ">
                                <a href="javascript:;" class="nb_levelLink">应用</a>
                                <div class="nb_level" role="scroll">
                                    <ul id="appContainer">
                                        <li><a id="article" href="javascript:;" class="nb_levelLink" url="/appliance/manage.php?mod=article&ac=manage">文章系统</a></li>
                                        <li><a id="gallery" href="javascript:;" class="nb_levelLink" url="/appliance/manage.php?mod=gallery&ac=manage">图库系统</a></li>
                                        <li><a id="message" href="javascript:;" class="nb_levelLink" url="/appliance/manage.php?mod=message&ac=manage">留言系统</a></li>
                                        <li><a id="videoapp" href="javascript:;" class="nb_levelLink" url="http://app.tuweia.cn/lihui/videoapp/?c=manage&a=article&websiteId=5580b5ae77eb06d23a8b4567&manageId=5580b5b077eb06d23a8b45b8">视频系统</a></li>
                                        <li><a id="comments" href="javascript:;" class="nb_levelLink" url="/appliance/manage.php?mod=comments&ac=manage">评论系统</a></li>
                                        <hr class="ct_1 hidden-phone" />
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/admin/a/store"><span class="ct_6">+添加...</span></a></li>
                                    </ul>
                                </div>
                            </li>
                            <li class="nb_levelLi arrowLeft"><a href="javascript:;" class="nb_levelLink">文件</a>
                                <div class="nb_level" role="scroll">
                                    <ul>
                                        <li><a id="page1" href="javascript:;" class="nb_levelLink" url="http://127.0.0.1/c/admin/a/finder/sign/image">我的图片</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="http://app.tuweia.cn/lihui/videoapp/?c=manage&websiteId=5580b5ae77eb06d23a8b4567">我的视频</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="http://127.0.0.1/c/admin/a/finder/sign/userfile">用户上传</a></li>
                                    </ul>
                                </div>
                            </li>
                            <li class="nb_levelLi arrowLeft"><a href="javascript:;" class="nb_levelLink">统计</a>
                                <div class="nb_level" role="scroll">
                                    <ul>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/admin/a/visitStatistics">访问统计</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/admin/a/trafficStatistics">流量统计</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/admin/a/spaceStatistics">空间统计</a></li>
                                    </ul>
                                </div>
                            </li>
                            <li class="nb_levelLi arrowLeft"><a href="javascript:;" class="nb_levelLink">帮助</a>
                                <div class="nb_level" role="scroll">
                                    <ul>
                                        <li><a class="nb_levelLink" href="http://help.sitemate.cn/latest" target="_blank">了解最新</a></li>
                                        <li><a target="_blank" class="nb_levelLink" href="http://help.sitemate.cn/start">快速入门</a></li>
                                        <li><a target="_blank" class="nb_levelLink" href="http://help.sitemate.cn/guide">使用手册</a></li>
                                        <li><a target="_blank" class="nb_levelLink" href="http://help.sitemate.cn/advanced">高级技巧</a></li>
                                        <li><a target="_blank" class="nb_levelLink" href="http://help.sitemate.cn/wechat">连接微信公众号</a></li>
                                        <li><a target="_blank" class="nb_levelLink" href="http://help.sitemate.cn/marketing">推广您的网站</a></li>
                                        <li><a target="_blank" class="nb_levelLink" href="http://help.sitemate.cn/questions">常见问题</a></li>
                                        <li><a target="_blank" class="nb_levelLink" href="http://help.sitemate.cn/forum">社区交流</a></li>
                                        <li><a target="_blank" class="nb_levelLink" href="http://help.sitemate.cn/feedback">意见及建议</a></li>
                                        <li><a href="javascript:;" class="nb_levelLink" url="/c/newManage/a/qrcode">查看二维码</a></li>
                                        <hr class="ct_1 hidden-phone" />
                                        <li><a target="_blank" class="nb_levelLink" href="http://tuweia.cn/c/home/a/cases/">寻找灵感</a></li>
                                        <hr class="ct_1 hidden-phone" />
                                        <li><a target="_blank" class="nb_levelLink" href="http://plateform.sitemate.cn/">了解突唯阿</a></li>
                                    </ul>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <div id="navMask"></div>
            <div class="mainScroller">
                <header class="navbar clearfix" id="navHeader">
                    <div class="nb_person" id="rightMenu">
                        <div class="nb_setting nb_title">
                            <span class="icon-plus" title="发布" data-tips="3_t"></span>
                            <div class="nb_menulist" style="min-width: 100px;">
                                <ul>
                                    <li><a href="javascript:void(0);" url="/appliance/manage.php?mod=article&ac=manage_add">发布文章</a></li>
                                    <li><a href="javascript:void(0);" url="/appliance/manage.php?mod=product&ac=manage_add">发布产品</a></li>
                                    <li><a href="javascript:void(0);" url="/appliance/manage.php?mod=gallery&ac=manage_add">发布图片</a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="nb_setting nb_title hidden-phone">
                            <span class="icon-envelope" id="msgBtn" title="消息" data-tips="3_t"></span>
                            <span class="nb_settingNumbers" id="noReadMsgCount" style="display: none;">0</span>
                            <div class="nb_menulist" style="min-width: 400px;">
                                <div class="nb_messageHead">
                                    <a href="javascript:void(0);" url="/?c=admin&a=remindSystem" class="nb_messageTool">设置</a>
                                    <div class="nb_messageTabs">
                                        <a href="javascript:void(0);" role="loadmsg" data-type="all" class="active">最新</a>
                                        <a href="javascript:void(0);" role="loadmsg" data-type="notice">公告</a>
                                        <a href="javascript:void(0);" role="loadmsg" data-type="remind">提醒</a>
                                        <a href="javascript:void(0);" role="loadmsg" data-type="app">通知</a>
                                    </div>
                                </div>
                                <div class="nb_messageMain">
                                    <div class="nb_messagePad" id="remindMsgBox"></div>
                                    <div class="nb_messageFoot">
                                        <a href="javascript:void(0);" role="loadMoreMsg">查看更多</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="nb_setting hidden-phone" role="requestFullScreen" title="全屏" data-tips="3_t">
                            <span class="icon-expand"></span>
                        </div>
                        <div class="nb_setting hidden-phone" role="cancelFullScreen" style="display: none;" title="退出全屏" data-tips="3_t">
                            <span class="icon-contract"></span>
                        </div>
                        <div class="nb_setting hidden-phone" role="preview" title="预览" data-tips="3_t">
                            <span class="icon-eye"></span>
                        </div>
                        <div class="nb_setting nb_title">
                            <span class="icon-user" title="我的" data-tips="3_t"></span>
                            <div class="nb_menulist" style="min-width: 120px;">
                                <ul>
                                    <li><a href="javascript:void(0);" url="/c/newManage/a/account">修改密码</a></li>
                                    <li><a href="javascript:void(0);" url="/c/newManage/a/contact">修改资料</a></li>
                                    <hr class="ct_7" />
                                    <li><a href="/c/default/a/logout">退出</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <h1 class="nb_logo"><a href="http://sitemate.cn/" target="_blank" class="logo hidden-phone" title="突唯阿" data-tips="3_t"></a><a href="javascript:;" class="openNav hidden-desktop" id="phoneNav"></a></h1>
                </header>
                <div id="mainContainer">
                    <div class="siteTab" id="siteTab">
                        <div class="siteTabSlide" id="siteTabSlide">
                            <a href="javascript:;" class="left"></a>
                            <a href="javascript:;" class="right"></a>
                        </div>
                        <div class="siteTabBox">
                            <ul class="clearfix" id="siteTabBox">
                            </ul>
                        </div>
                    </div>
                    <div class="frameContainer" id="frameContainer">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="../../cdn/js/jquery-1.9.1.js"></script>
    <script src="../../cdn/js/jquery.easing.compatibility.js"></script>
    <script src="../../cdn/js/jquery.json-2.2.js"></script>
    <script src="../../cdn/js/phprpc.js"></script>
    <script src="../../cdn/js/prefixfree.min.js"></script>
    <script src="../../cdn/js/fancySelect.js"></script>
    <script src="../../cdn/js/common.js"></script>
    <script src="../../cdn/js/function.js"></script>
    <link href="../../static/css/custom-theme/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css">
    <script src="../../cdn/js/jquery-ui-1.9.2.custom.min.js"></script>
    <script src="../../cdn/js/jquery.ui.touch-punch.min.js"></script>
    <script src="../../cdn/js/jquery.validationEngine.js"></script>
    <link href="../../static/css/validationEngine.jquery.css" rel="stylesheet" type="text/css">
    <script type="text/javascript">
        var click = 'click',
                supportTouch = false;
        if ("ontouchend" in document) {
            supportTouch = true;
            if (navigator.userAgent.indexOf('QQ') < 0) {
                document.write('<script src="../../cdn/js/vMouse.js"><\/script>');
                click = 'vclick';
            };
            $.fn.extend({
                niceScroll: function () {
                    $(this).css({
                        '-webkit-overflow-scrolling': 'touch',
                        'overflow': 'auto'
                    });
                },
                getNiceScroll: function () {
                    return ({
                        hide: $.noop,
                        show: $.noop,
                        remove: $.noop,
                        resize: $.noop
                    });
                }
            });
        } else {
            document.write('<script src="../../cdn/js/jquery.nicescroll.min.js"><\/script>');
        }
        ;

    </script>
    <script type="text/javascript">
        $(document).ready(function () {

            $("body.boxscroll,div.boxscroll").niceScroll({ autohidemode: true, bouncescroll: true, zindex: 101, cursorwidth: 5, railpadding: { top: 0, right: 0, left: 0, bottom: 0 } });
            $('body').delegate('a[target=_top]', click, function (e) {
                var $this = $(this),
                        url = $this.attr('href'),
                        title = $this.attr('title') || '';
                if (url && url != '#' && url != 'javascript:;' && typeof top.createFrame == 'function') {
                    top.createFrame(url, title);
                    e.preventDefault();
                }
                ;
            })
        });
    </script>
    <link href="../../static/plugins/dynatree/skin-vista/ui.dynatree.css" rel="stylesheet" type="text/css">
    <script src="../../static/plugins/dynatree/jquery.dynatree.js"></script>
    <script src="../../cdn/js/admin/admin.js"></script>
    <script type="text/javascript">

        //if (window.screen.availWidth < 768) {
        if ($(window).width() < 768) {
            $.getScript('../../static/js/jquery.ba-hashchange.min.js', function () {
                $(window).hashchange(function (e) {
                    var hash = decodeURI(location.hash).replace('#', ''),
                            hashs = hash.split('|'),
                            url = hashs[0],
                            title = hashs[1];
                    if (url) {
                        createFrame(url, title);
                    } else {
                        showWelcome();
                    }
                }).hashchange();
            });
        } else {
            showWelcome();
        }
        ;
        //createFrame('/c/admin/a/page&id=5369e12a0b746abc18002e40');
        /* loadPage({
         name:$HASH['homePage']['name'], 	
         id: $HASH['homePage']['id'],
         url: '/c/admin/a/page/id/'+$HASH['homePage']['id']
         });*/
    </script>
    <script type="text/javascript">
        window.onbeforeunload = function (e) {
            e = e || window.event;
            if (e) {
                e.returnValue = '确定要离开页面吗?';
            }
            ;
            return '确定要离开页面吗?';
        };



        var remindMsgBox = $('#remindMsgBox'),
                lastMsgId = '',
                msgType = 'all',
                loadMoreBtn = $('a[role=loadMoreMsg]', $('#navHeader')),
                lastone = '';
        var loadRemindMsg = function (type, more) {
            loadMoreBtn.parent().hide();
            if (!more) {
                lastMsgId = '';
                remindMsgBox.empty();
            }
            var loadingEl = $(getContentLoading('', '正在加载中...')).insertAfter(remindMsgBox);
            $.post(ajaxURL, { type: type, lastMsgId: lastMsgId, action: "getNoReadMsg" }, function (backData) {
                if (backData) {
                    remindMsgBox.append(backData);
                    var last = remindMsgBox.find('div[role=item]:last');
                    lastMsgId = last.data('id');
                    if (last.length) {
                        lastone = last.data('lastone');
                        if (!lastone) {
                            loadMoreBtn.parent().show();
                        }
                        ;
                    }
                    ;
                    remindMsgBox.getNiceScroll().resize();
                    loadingEl.remove();
                }
            });
        };
        $('#msgBtn').on(click, function (e) {
            if ($(this).parent().hasClass('active') == false) {
                msgType = 'all';
                $('#noReadMsgCount').text(0).hide();
                loadRemindMsg(msgType, null);
            }
        });
        $('#remindMsgBox').delegate('a[role]', click, function (e) {
            e.preventDefault();
            e.stopPropagation();
            var $this = $(this);
            switch ($(this).attr('role')) {
                case 'delmsg':
                    Confirm('确定删除该数据吗？', function () {
                        var ids = [],
                                id = $this.parents('div:first').data('id');
                        ids.push(id);
                        rpcJSON('delRemindMsg', { ids: ids }, function () {
                            $this.parents('div:first').remove();
                        });
                    });
                    break;
                case 'viewMsg':
                    var id = $this.parents('div:first').data('id'),
                            href = '/?c=admin&a=viewMsg&id=' + id;
                    createFrame(href, '查看消息');
                    break;
            }
        });
        $('#navHeader').delegate('a[role]', click, function (e) {
            e.preventDefault();
            e.stopPropagation();
            switch ($(this).attr('role')) {
                case 'loadmsg':
                    msgType = $(this).data('type');
                    $(this).addClass('active').siblings().removeClass('active');
                    loadRemindMsg(msgType, null);
                    break;
                case 'loadMoreMsg':
                    loadRemindMsg(msgType, true);
                    break;

            }
            ;
        });
        var getMsgCount = function () {
            $.getJSON(ajaxURL, { action: "getNoReadMsgCount" }, function (backData) {
                if (backData.count > 0) {
                    $('#noReadMsgCount').text(backData.count).show();
                }
            });
        };
        setInterval("getMsgCount()", 120000);
    </script>
    <script type="text/javascript">
        var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
        document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F6e73988044da76e283deb3d1e7307cd4' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
        if ($.browser.msie && $.browser.version < 10) {
            $('<div style="padding:10px;">' + lowBrowserHtml + '</div>').prependTo('body');
        }
        ;
    </script>
</body>
</html>